import request from '@/utils/request';

// 获取分账模板列表
export function getProfitSharingTemplateList(params: any) {
  return request.get('/api/profit/sharing/template/list', params);
}

// 获取分账模板详情
export function getProfitSharingTemplateDetail(id: string | number) {
  return request.get(`/api/profit/sharing/template/get/${id}`);
}

// 创建分账模板
export function createProfitSharingTemplate(data: any) {
  return request.post('/api/profit/sharing/template/create', data);
}

// 更新分账模板
export function updateProfitSharingTemplate(id: string | number, data: any) {
  return request.put(`/api/profit/sharing/template/update/${id}`, data);
}

// 删除分账模板
export function deleteProfitSharingTemplate(id: string | number) {
  return request.delete(`/api/profit/sharing/template/delete/${id}`);
} 